/*    */ package server.commands;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public enum PlayerGMRank
/*    */ {
/* 12 */   NORMAL('@', "普通玩家"),
/* 13 */   DONATOR('#', "活动管理员"),
/* 14 */   SUPERDONATOR('$', "超级活动管理员"),
/* 15 */   INTERN('%', "实习GM"),
/* 16 */   GM('!', "普通GM"),
/* 17 */   SUPERGM('!', "超级GM"),
/* 18 */   ADMIN('!', "管理员"),
/* 19 */   CHAT('-', "普通聊天");
/*    */   private final char commandPrefix;
/*    */   private final String name;
/*    */   
/*    */   PlayerGMRank(char ch, String name) {
/* 24 */     this.commandPrefix = ch;
/* 25 */     this.name = name;
/*    */   }
/*    */   
/*    */   public char getCommandPrefix() {
/* 29 */     return this.commandPrefix;
/*    */   }
/*    */   
/*    */   public String getName() {
/* 33 */     return this.name;
/*    */   }
/*    */   
/*    */   public static PlayerGMRank getPlayerGMRankByLevel(int level) {
/* 37 */     return values()[level];
/*    */   }
/*    */   
/*    */   public static PlayerGMRank getPlayerGMRankByCommandPrefix(char commandPrefix) {
/* 41 */     for (PlayerGMRank rank : values()) {
/* 42 */       if (rank.commandPrefix == commandPrefix) {
/* 43 */         return rank;
/*    */       }
/*    */     } 
/* 46 */     return null;
/*    */   }
/*    */   
/*    */   public static boolean isGMCommandPrefix(char commandPrefix) {
/* 50 */     return (INTERN.getCommandPrefix() == commandPrefix || GM.getCommandPrefix() == commandPrefix || SUPERGM.getCommandPrefix() == commandPrefix || ADMIN.getCommandPrefix() == commandPrefix);
/*    */   }
/*    */   
/*    */   public static boolean isPlayerCommandPrefix(char commandPrefix) {
/* 54 */     return (NORMAL.getCommandPrefix() == commandPrefix);
/*    */   }
/*    */   
/*    */   public static boolean isActivityCommandPrefix(char commandPrefix) {
/* 58 */     return (DONATOR.getCommandPrefix() == commandPrefix || SUPERDONATOR.getCommandPrefix() == commandPrefix);
/*    */   }
/*    */   
/*    */   public int getLevel() {
/* 62 */     return ordinal();
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\commands\PlayerGMRank.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */